package swu.edu.cn.javaee.entity;
import org.apache.ibatis.type.Alias;

@Alias("product")
public class Product {
    private String pid;
    private User user;
    private String pUid;
    private String pName;
    private String photo;
    private String type;
    private String price;
    private String intro;
    private String pRecommend;

    public Product() {
        this.pid = "";
        this.user=null;
        this.pUid="";
        this.pName="";
        this.photo="";
        this.type="";
        this.price="";
        this.intro="";
        this.pRecommend="";
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getpUid() {
        return pUid;
    }

    public void setpUid(String pUid) {
        this.pUid = pUid;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getpRecommend() {
        return pRecommend;
    }

    public void setpRecommend(String pRecommend) {
        this.pRecommend = pRecommend;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid='" + pid + '\'' +
                ", user=" + user +
                ", pUid='" + pUid + '\'' +
                ", pName='" + pName + '\'' +
                ", photo='" + photo + '\'' +
                ", type='" + type + '\'' +
                ", price='" + price + '\'' +
                ", intro='" + intro + '\'' +
                ", pRecommend='" + pRecommend + '\'' +
                '}';
    }
}
